package secondStage.part2.接口.five;

/**
 * @ClassName: [JieKouMingZuoWei]
 * @Description: 接口名作为形参和返回值
 * 特点：方法的形参是接口名，其实需要的是该接口的实现类对象
 * 方法的返回值是接口名，其实返回的是该接口的实现类对缘
 * @Author: [黄劲松]
 * @CreateDate: [2021-03-21]
 * @Version: [v1.0]
 */
public class JieKouMingZuoWei {
    public static void main(String[] args) {
        //创建操作类对象
        JumppingOperator jp = new JumppingOperator();
        Jumpping j = new Cat();
        jp.useJumpping(j);

        Jumpping j2 = jp.getJumpping();//相当于new Cat();
        j2.jump();
    }
}
